package com.iplatform.commons.pagination;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Title: Pagination Description:
 *
 * @author RayLLi
 * @date 2018年8月27日
 */
@ApiModel("分页信息")
public class Pagination {

	/**
	 *  每页多少条记录
	 */
	@ApiModelProperty(value = "每页多少条,非必填,默认10条",dataType="int", example="10")
	private int pageSize;

	/**
	 *  共多少条记录
	 */
	 @ApiModelProperty(hidden=true,value = "共多少条", dataType="long", example="123")
	private long totalCount;

	/**
	 *  当前第几页
	 */
	 @ApiModelProperty(value = "当前第几页,非必填,默认第1页",dataType="int", example="1")
	private int pageNum;

	/**
	 *  总页数
	 */
	 @ApiModelProperty(hidden=true,value = "总页数",dataType="int", example="123")
	private int totalPageNum;

	/**
	 * 初始化时默认值
	 */
	public Pagination() {
		// 默认每页10条记录
		pageSize = 10;
		// 共多少条记录
		totalCount = 0;
		// 默认第一页
		pageNum = 1;
	}

	public long getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(long totalCount) {
		this.totalCount = totalCount;
	}



	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getTotalPageNum() {
		return totalPageNum;
	}

	public void setTotalPageNum(int totalPageNum) {
		this.totalPageNum = totalPageNum;
	}
	
	

}
